export default {
	setStar(e) {
		console.log(e)
		this.score = e.akey + 1
	},
	submit() {
		let that = this
		that.$httpRequest.request({
			that,
			url: 'wechat/orderEvaluate',
			params: {
				id: that.id,
				evaluateScore: this.score,
				evaluateContent: that.netData,
			},
			success: res => {
				if (res.code === that.$httpConfig.SUCCESS_CODE) {
					that.$toast.msg(res.message, {
						icon: 1
					})
					setTimeout(() => {
						uni.navigateBack({
							delta: 1
						})
					}, 300)

				} else {
					that.$toast.alert({
						content: res.message,
						callback: result => {
							if (result.confirm) {

							}
						}
					})
				}
			}
		})
	},

}